package defpackage; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.ScrollView; import android.widget.TextView; import cn.wps.moffice.common.beans.CommonErrorPage; import cn.wps.moffice.common.beans.DynamicLinearLayout; import cn.wps.moffice_eng.R; import cn.wps.util.JSONUtil; import com.fasterxml.jackson.core.util.MinimalPrettyPrinter; import defpackage.dlv; import defpackage.eae; import defpackage.hue; import defpackage.huo; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Map; /* renamed from: fxz reason: default package */ public final class fxz extends fyq implements View.OnClickListener { private ScrollView gGC; private View gGD; private View gGE; private CommonErrorPage gGF; private b gGG = new b(this, (byte) 0); private c gGH = new c(this, (byte) 0); private a gGI = new a(this, (byte) 0); private boolean gGJ; private boolean gGK; private boolean gGL; private View gGM; private TextView gGN; private ImageView gGO; private TextView gGP; private View gGQ; private View gGR; private View gGS; private DynamicLinearLayout gGT; private fxy gGU; private View gGV; private TextView gGW; private ImageView gGX; private TextView gGY; private View gGZ; private View gHa; private View gHb; private TextView gHc; private ImageView gHd; private TextView gHe; private View gHf; private View gHg; private d gHh = new d(); private View mProgressBar; private View mRootView; /* access modifiers changed from: package-private */ /* renamed from: fxz$a */ public class a extends fcv<Void, Void, Boolean> { private long gHk; private a() { this.gHk = 10; } /* synthetic */ a(fxz fxz, byte b) { this(); } private Boolean aTc() { boolean z = false; do { boolean z2 = fxz.this.gGG.gHl || fxz.this.gGH.gHl || fxz.this.gGJ || fxz.this.gGK || fxz.this.gGL; this.gHk--; if (!z2) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } if (this.gHk <= 0) { break; } } else { return Boolean.valueOf(z2); } } while (!isCancelled()); if (fxz.this.gGG.gHl || fxz.this.gGH.gHl || fxz.this.gGJ || fxz.this.gGK || fxz.this.gGL) { z = true; } return Boolean.valueOf(z); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object[]] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ Boolean doInBackground(Void[] voidArr) { return aTc(); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ void onPostExecute(Boolean bool) { Boolean bool2 = bool; fxz.this.mProgressBar.setVisibility(8); if (isCancelled()) { return; } if (bool2.booleanValue()) { fxz.this.gGF.setVisibility(8); return; } fxz.this.gGF.setVisibility(0); fxz.a(fxz.this, fxz.this.gGF); } /* access modifiers changed from: protected */ @Override // defpackage.fcv public final void onPreExecute() { fxz.this.gGF.setVisibility(8); fxz.this.mProgressBar.setVisibility(0); } } /* access modifiers changed from: package-private */ /* renamed from: fxz$b */ public class b extends fcv<Void, Void, List<dli>> { boolean gHl; private b() { this.gHl = false; } /* synthetic */ b(fxz fxz, byte b) { this(); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object[]] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ List<dli> doInBackground(Void[] voidArr) { dmy.kR(ebo.bE(fxz.this.mActivity)); return dks.aHL().aGU(); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ void onPostExecute(List<dli> list) { List<dli> list2 = list; if (!(list2 == null || isCancelled())) { ArrayList arrayList = new ArrayList(); for (dli dli : list2) { if (dks.aHL().ks(dli.dJz)) { arrayList.add(dli); } } if (arrayList.size() > 0) { this.gHl = true; fxz.this.gGF.setVisibility(8); fxz.this.gGS.setVisibility(0); fxz.this.gGU.aAB = arrayList; fxz.this.gGU.notifyDataSetChanged(); } } } } /* access modifiers changed from: package-private */ /* renamed from: fxz$c */ public class c extends fcv<Void, Void, Boolean> { boolean gHl; private c() { this.gHl = false; } /* synthetic */ c(fxz fxz, byte b) { this(); } private Boolean aTc() { boolean z; boolean z2 = true; String bE = ebo.bE(fxz.this.mActivity); try { List<dnc> kU = dmz.aIA().kU(bE); ArrayList arrayList = new ArrayList(); for (dnc dnc : kU) { if ("complete".equalsIgnoreCase(dnc.status)) { arrayList.add(dnc); } } z = arrayList.size() > 0; } catch (Exception e) { z = false; } if (isCancelled()) { return Boolean.valueOf(z); } if (!z) { try { hwe hwe = new hwe(); hwe.dk("wps_id", bE); List list = (List) JSONUtil.getGson().fromJson(lwd.c("https://movip.wps.com/vip/pay_pal/query_sub_by_wps_id", hwe.cmq(), hwe.bVz()), /* JADX ERROR: Method code generation error jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x007a: CHECK_CAST (r0v8 'list' java.util.List) = (java.util.List) (wrap: java.lang.Object : 0x0076: INVOKE (r0v7 java.lang.Object) = (wrap: com.google.gson.Gson : 0x0069: INVOKE (r4v2 com.google.gson.Gson) = type: STATIC call: cn.wps.util.JSONUtil.getGson():com.google.gson.Gson) (wrap: java.lang.String : 0x0065: INVOKE (r0v6 java.lang.String) = ("https://movip.wps.com/vip/pay_pal/query_sub_by_wps_id") (wrap: java.lang.String : 0x005d: INVOKE (r4v1 java.lang.String) = (r5v0 'hwe' hwe) type: VIRTUAL call: hwe.cmq():java.lang.String) (wrap: java.util.HashMap<java.lang.String, java.lang.String> : 0x0061: INVOKE (r5v1 java.util.HashMap<java.lang.String, java.lang.String>) = (r5v0 'hwe' hwe) type: VIRTUAL call: hwe.bVz():java.util.HashMap) type: STATIC call: lwd.c(java.lang.String, java.lang.String, java.util.HashMap):java.lang.String) (wrap: java.lang.reflect.Type : 0x0072: INVOKE (r5v3 java.lang.reflect.Type) = (wrap: dzq$1 : 0x006f: CONSTRUCTOR (r5v2 dzq$1) = call: dzq.1.<init>():void type: CONSTRUCTOR) type: VIRTUAL call: dzq.1.getType():java.lang.reflect.Type) type: VIRTUAL call: com.google.gson.Gson.fromJson(java.lang.String, java.lang.reflect.Type):java.lang.Object) in method: fxz.c.aTc():java.lang.Boolean, file: classes12.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:217) at jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:110) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:56) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.RegionGen.makeRegionIndent(RegionGen.java:99) at jadx.core.codegen.RegionGen.makeTryCatch(RegionGen.java:306) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:69) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.RegionGen.makeRegionIndent(RegionGen.java:99) at jadx.core.codegen.RegionGen.makeIf(RegionGen.java:143) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:63) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:93) at jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:59) at jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:244) at jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:237) at jadx.core.codegen.ClassGen.addMethodCode(ClassGen.java:342) at jadx.core.codegen.ClassGen.addMethod(ClassGen.java:295) at jadx.core.codegen.ClassGen.lambda$addInnerClsAndMethods$2(ClassGen.java:264) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) Caused by: jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0076: INVOKE (r0v7 java.lang.Object) = (wrap: com.google.gson.Gson : 0x0069: INVOKE (r4v2 com.google.gson.Gson) = type: STATIC call: cn.wps.util.JSONUtil.getGson():com.google.gson.Gson) (wrap: java.lang.String : 0x0065: INVOKE (r0v6 java.lang.String) = ("https://movip.wps.com/vip/pay_pal/query_sub_by_wps_id") (wrap: java.lang.String : 0x005d: INVOKE (r4v1 java.lang.String) = (r5v0 'hwe' hwe) type: VIRTUAL call: hwe.cmq():java.lang.String) (wrap: java.util.HashMap<java.lang.String, java.lang.String> : 0x0061: INVOKE (r5v1 java.util.HashMap<java.lang.String, java.lang.String>) = (r5v0 'hwe' hwe) type: VIRTUAL call: hwe.bVz():java.util.HashMap) type: STATIC call: lwd.c(java.lang.String, java.lang.String, java.util.HashMap):java.lang.String) (wrap: java.lang.reflect.Type : 0x0072: INVOKE (r5v3 java.lang.reflect.Type) = (wrap: dzq$1 : 0x006f: CONSTRUCTOR (r5v2 dzq$1) = call: dzq.1.<init>():void type: CONSTRUCTOR) type: VIRTUAL call: dzq.1.getType():java.lang.reflect.Type) type: VIRTUAL call: com.google.gson.Gson.fromJson(java.lang.String, java.lang.reflect.Type):java.lang.Object in method: fxz.c.aTc():java.lang.Boolean, file: classes12.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.addWrappedArg(InsnGen.java:119) at jadx.core.codegen.InsnGen.addArg(InsnGen.java:103) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:290) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:249) ... 28 more Caused by: jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0072: INVOKE (r5v3 java.lang.reflect.Type) = (wrap: dzq$1 : 0x006f: CONSTRUCTOR (r5v2 dzq$1) = call: dzq.1.<init>():void type: CONSTRUCTOR) type: VIRTUAL call: dzq.1.getType():java.lang.reflect.Type in method: fxz.c.aTc():java.lang.Boolean, file: classes12.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.addWrappedArg(InsnGen.java:119) at jadx.core.codegen.InsnGen.addArg(InsnGen.java:103) at jadx.core.codegen.InsnGen.generateMethodArguments(InsnGen.java:806) at jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:746) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:367) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:230) ... 32 more Caused by: jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x006f: CONSTRUCTOR (r5v2 dzq$1) = call: dzq.1.<init>():void type: CONSTRUCTOR in method: fxz.c.aTc():java.lang.Boolean, file: classes12.dex at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:255) at jadx.core.codegen.InsnGen.addWrappedArg(InsnGen.java:119) at jadx.core.codegen.InsnGen.addArg(InsnGen.java:103) at jadx.core.codegen.InsnGen.addArgDot(InsnGen.java:87) at jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:715) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:367) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:230) ... 38 more Caused by: jadx.core.utils.exceptions.JadxRuntimeException: Expected class to be processed at this point, class: dzq, state: GENERATED_AND_UNLOADED at jadx.core.dex.nodes.ClassNode.ensureProcessed(ClassNode.java:215) at jadx.core.codegen.InsnGen.makeConstructor(InsnGen.java:630) at jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:363) at jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:230) ... 44 more */ /* // Method dump skipped, instructions count: 142 */ throw new UnsupportedOperationException("Method not decompiled: defpackage.fxz.c.aTc():java.lang.Boolean"); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object[]] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ Boolean doInBackground(Void[] voidArr) { return aTc(); } /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */ /* access modifiers changed from: protected */ @Override // defpackage.fcv public final /* synthetic */ void onPostExecute(Boolean bool) { Boolean bool2 = bool; if (isCancelled()) { return; } if (eae.aQW().aQZ() == eae.b.evP || !bool2.booleanValue()) { fxz.this.gGM.setVisibility(8); return; } fxz.this.gGM.setVisibility(0); fxz.this.gGQ.setVisibility(0); fxz.this.gGR.setVisibility(0); fxz.this.gGO.setImageResource(R.drawable.foreign_home_member_go); fxz.this.gGN.setTextColor(fxz.this.mActivity.getResources().getColor(R.color.phone_public_fontcolor_gray_2)); fxz.this.gGN.setEnabled(false); fxz.this.gGM.setBackgroundResource(R.color.public_popup_list_item_pressed_gray); fxz.this.gGP.setText(fxz.this.d((fxz) new Date())); this.gHl = true; fxz.this.gGF.setVisibility(8); } /* access modifiers changed from: protected */ @Override // defpackage.fcv public final void onPreExecute() { fxz.this.gGM.setVisibility(8); fxz.this.gGQ.setVisibility(8); } } /* renamed from: fxz$d */ class d extends BroadcastReceiver { d() { } public final void onReceive(Context context, Intent intent) { fxz.this.bJv(); } } public fxz(Activity activity) { super(activity); IntentFilter intentFilter = new IntentFilter(); intentFilter.addAction("ORDER_COMPLETED_ACTION"); lya.hH(getActivity()).registerReceiver(this.gHh, intentFilter); } static /* synthetic */ void a(fxz fxz, final CommonErrorPage commonErrorPage) { if (commonErrorPage == null) { return; } if (!lwd.hu(fxz.mActivity)) { commonErrorPage.nT(R.drawable.phone_public_no_network_icon).nR(R.string.documentmanager_cloudfile_no_network).nS(R.string.ppt_retry).a(new View.OnClickListener() { /* class defpackage.fxz.AnonymousClass8 */ public final void onClick(View view) { if (lwd.hu(fxz.this.mActivity)) { commonErrorPage.setVisibility(8); fxz.this.refresh(); } } }); commonErrorPage.cNF.setVisibility(0); return; } commonErrorPage.nT(R.drawable.public_tips_file_blank_icon).nR(R.string.notice_no_record_found); commonErrorPage.cNF.setVisibility(8); } /* JADX WARNING: Code restructure failed: missing block: B:7:0x0026, code lost: if (r0 > r2) goto L_0x0028; */ static /* synthetic */ void a(fxz fxz, huo.a aVar) { long j; if (aVar == null) { fxz.gHb.setVisibility(8); return; } try { long j2 = aVar.iPT.gbs; if (eae.aRb()) { j = fok.bBq().geJ.bBh().aSm(); } j = j2; if (j > System.currentTimeMillis() / 1000) { fxz.gHb.setVisibility(0); fxz.gHc.setTextColor(fxz.mActivity.getResources().getColor(R.color.phone_public_fontcolor_black)); fxz.gHc.setEnabled(true); fxz.gHf.setVisibility(8); fxz.gHg.setVisibility(8); fxz.gHd.setImageResource(R.drawable.phone_pay_dialog_ads_free); fxz.gHb.setBackgroundResource(R.drawable.phone_public_list_white_selector); fxz.gHe.setText(fxz.d(new Date(j * 1000))); fxz.gGF.setVisibility(8); fxz.gGJ = true; } else if (j != 0) { fxz.gHb.setVisibility(0); fxz.gHf.setVisibility(0); fxz.gHg.setVisibility(0); fxz.gHd.setImageResource(R.drawable.foreign_home_ads_free_go); fxz.gHc.setTextColor(fxz.mActivity.getResources().getColor(R.color.phone_public_fontcolor_gray_2)); fxz.gHc.setEnabled(false); fxz.gHb.setBackgroundResource(R.color.public_popup_list_item_pressed_gray); fxz.gHe.setText(fxz.d(new Date(j * 1000))); fxz.gGF.setVisibility(8); fxz.gGJ = true; } else { fxz.gHb.setVisibility(8); } } catch (Exception e) { } } /* JADX WARNING: Code restructure failed: missing block: B:7:0x0026, code lost: if (r0 > r2) goto L_0x0028; */ static /* synthetic */ void b(fxz fxz, huo.a aVar) { long j; if (aVar == null) { fxz.gGV.setVisibility(8); return; } try { long j2 = aVar.iPT.gbs; if (eae.aRb()) { j = fok.bBq().geJ.bBh().aSm(); } j = j2; if (j > System.currentTimeMillis() / 1000) { fxz.gGV.setVisibility(0); fxz.gGW.setTextColor(fxz.mActivity.getResources().getColor(R.color.phone_public_fontcolor_black)); fxz.gGW.setEnabled(true); fxz.gGZ.setVisibility(8); fxz.gHa.setVisibility(8); fxz.gGX.setImageResource(R.drawable.phone_pay_dialog_pdf_toolkit); fxz.gGV.setBackgroundResource(R.drawable.phone_public_list_white_selector); fxz.gGY.setText(fxz.d(new Date(j * 1000))); fxz.gGF.setVisibility(8); fxz.gGK = true; } else if (j != 0) { fxz.gGV.setVisibility(0); fxz.gGZ.setVisibility(0); fxz.gHa.setVisibility(0); fxz.gGX.setImageResource(R.drawable.foreign_home_pdf_go); fxz.gGW.setTextColor(fxz.mActivity.getResources().getColor(R.color.phone_public_fontcolor_gray_2)); fxz.gGW.setEnabled(false); fxz.gGV.setBackgroundResource(R.color.public_popup_list_item_pressed_gray); fxz.gGY.setText(fxz.d(new Date(j * 1000))); fxz.gGF.setVisibility(8); fxz.gGK = true; } else { fxz.gGV.setVisibility(8); } } catch (Exception e) { } } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private void bJv() { if (eae.aRb() || eae.aQW().aQY()) { this.gGM.setVisibility(0); this.gGN.setTextColor(this.mActivity.getResources().getColor(R.color.phone_public_fontcolor_black)); this.gGN.setEnabled(true); this.gGQ.setVisibility(8); this.gGR.setVisibility(8); this.gGO.setImageResource(R.drawable.foreign_home_member_premium); this.gGM.setBackgroundResource(R.drawable.phone_public_list_white_selector); this.gGP.setText(d(new Date(ebo.aSr().aSm() * 1000))); this.gGF.setVisibility(8); this.gGL = true; return; } this.gGH.cancel(true); this.gGH = new c(this, (byte) 0); this.gGH.execute(new Void[0]); } /* access modifiers changed from: private */ /* access modifiers changed from: public */ private String d(Date date) { return this.mActivity.getString(R.string.public_expire_time) + MinimalPrettyPrinter.DEFAULT_ROOT_VALUE_SEPARATOR + lub.formatDate(date, "yyyy-MM-dd"); } public final void destroy() { vzh.m252if(this.mActivity).Xy("my_order_activity"); lya.hH(getActivity()).unregisterReceiver(this.gHh); } @Override // defpackage.fys, defpackage.fyq public final View getMainView() { if (this.mRootView == null) { this.mRootView = LayoutInflater.from(this.mActivity).inflate(R.layout.foreign_home_myorders_activity, (ViewGroup) null); this.gGC = (ScrollView) this.mRootView.findViewById(R.id.myorder_content_layout); this.gGD = this.mRootView.findViewById(R.id.myorder_signin_layout); this.gGE = this.mRootView.findViewById(R.id.my_signin_btn); this.gGE.setOnClickListener(this); this.gGF = (CommonErrorPage) this.mRootView.findViewById(R.id.myorder_norecord_layout); this.mProgressBar = this.mRootView.findViewById(R.id.circle_progressBar); this.gGM = this.mRootView.findViewById(R.id.order_member_content); this.gGN = (TextView) this.mRootView.findViewById(R.id.order_member_title); this.gGO = (ImageView) this.mRootView.findViewById(R.id.order_member_imageview); this.gGP = (TextView) this.mRootView.findViewById(R.id.order_member_expiretime_value); this.gGQ = this.mRootView.findViewById(R.id.order_member_expired_icon); this.gGR = this.mRootView.findViewById(R.id.go_to_premium); this.gGM.setOnClickListener(this); this.gGR.setOnClickListener(this); this.gGV = this.mRootView.findViewById(R.id.order_pdftoolkit_content); this.gGW = (TextView) this.mRootView.findViewById(R.id.order_pdftoolkit_title); this.gGX = (ImageView) this.mRootView.findViewById(R.id.order_pdftoolkit_imageview); this.gGY = (TextView) this.mRootView.findViewById(R.id.order_pdftoolkit_expiretime_value); this.gGZ = this.mRootView.findViewById(R.id.order_pdftoolkit_expired_icon); this.gHa = this.mRootView.findViewById(R.id.go_to_pdftoolkit); this.gGV.setOnClickListener(this); this.gHa.setOnClickListener(this); this.gHb = this.mRootView.findViewById(R.id.order_ads_free_content); this.gHc = (TextView) this.mRootView.findViewById(R.id.order_ads_free_title); this.gHd = (ImageView) this.mRootView.findViewById(R.id.order_ads_free_imageview); this.gHe = (TextView) this.mRootView.findViewById(R.id.order_ads_free_expiretime_value); this.gHf = this.mRootView.findViewById(R.id.order_ads_free_expired_icon); this.gHg = this.mRootView.findViewById(R.id.go_to_ads_free); this.gHb.setOnClickListener(this); this.gHg.setOnClickListener(this); this.gGS = this.mRootView.findViewById(R.id.order_fontpack_content); this.gGT = (DynamicLinearLayout) this.mRootView.findViewById(R.id.order_fontpack_items); this.gGU = new fxy(this.mActivity); this.gGT.setOnItemClickListener(new DynamicLinearLayout.a() { /* class defpackage.fxz.AnonymousClass1 */ @Override // cn.wps.moffice.common.beans.DynamicLinearLayout.a public final void d(View view, int i) { fvf.aN(fxz.this.getActivity(), "font_ordercenter"); } }); this.gGT.setAdapter(this.gGU); } return this.mRootView; } @Override // defpackage.fyq public final int getViewTitleResId() { return R.string.home_membercenter_my_orders; } public final void onClick(View view) { switch (view.getId()) { case R.id.go_to_ads_free /*{ENCODED_INT: 2131364015}*/: gyp gyp = new gyp(this.mActivity, "adprivileges_ordercenter", null, dlv.a.ads_free); gyp.bWJ(); gyp.gIz = new gyq() { /* class defpackage.fxz.AnonymousClass6 */ @Override // defpackage.gyq public final void aHN() { fxz.this.refresh(); } }; return; case R.id.go_to_pdftoolkit /*{ENCODED_INT: 2131364017}*/: gyp gyp2 = new gyp(this.mActivity, "pdftoolkit_ordercenter", null, dlv.a.pdf_toolkit); gyp2.bWJ(); gyp2.gIz = new gyq() { /* class defpackage.fxz.AnonymousClass4 */ @Override // defpackage.gyq public final void aHN() { fxz.this.refresh(); } }; return; case R.id.go_to_premium /*{ENCODED_INT: 2131364018}*/: case R.id.order_member_content /*{ENCODED_INT: 2131365475}*/: fvf.aM(this.mActivity, "vip_ordercenter"); return; case R.id.my_signin_btn /*{ENCODED_INT: 2131365210}*/: ebo.c(this.mActivity, new Runnable() { /* class defpackage.fxz.AnonymousClass3 */ public final void run() { if (ebo.arU()) { fxz.this.refresh(); } } }); return; case R.id.order_ads_free_content /*{ENCODED_INT: 2131365464}*/: if (this.gHf.getVisibility() == 8) { new gyr(this.mActivity, R.string.premium_ad_privilege, R.string.public_premium_no_ads_desc, huo.BI("ads_free_i18n")).show(); return; } gyk gyk = new gyk(); gyk.cD("adprivileges_ordercenter", null); gyk.a(hug.a(R.drawable.func_guide_ad_privilege, R.string.premium_ad_privilege, R.string.public_premium_no_ads_desc, hug.clq(), hug.clr())); gyk.F(new Runnable() { /* class defpackage.fxz.AnonymousClass7 */ public final void run() { fxz.this.refresh(); } }); gyj.a(this.mActivity, gyk); return; case R.id.order_pdftoolkit_content /*{ENCODED_INT: 2131365482}*/: if (this.gGZ.getVisibility() == 8) { new gyr(this.mActivity, R.string.public_pdf_toolkit, R.string.public_pdf_toolkit_desc, huo.BJ("pdf_toolkit")).show(); return; } gyk gyk2 = new gyk(); gyk2.cD("pdftoolkit_ordercenter", null); gyk2.a(hug.a(R.drawable.func_guide_pdftoolskit, R.string.public_pdf_toolkit, R.string.public_pdf_toolkit_desc, hug.clq(), hug.clp())); gyk2.F(new Runnable() { /* class defpackage.fxz.AnonymousClass5 */ public final void run() { fxz.this.refresh(); } }); gyj.a(this.mActivity, gyk2); return; default: return; } } public final void refresh() { if (ebo.arU()) { this.gGC.setVisibility(0); this.gGD.setVisibility(8); bJv(); hue.a(new hue.a() { /* class defpackage.fxz.AnonymousClass2 */ @Override // defpackage.hue.a public final void e(Map<String, huo.a> map) { fxz.a(fxz.this, map.get("ads_free_i18n")); fxz.b(fxz.this, map.get("pdf_toolkit")); } }); this.gGG.cancel(true); this.gGG = new b(this, (byte) 0); this.gGG.execute(new Void[0]); this.gGI.cancel(true); this.gGI.execute(new Void[0]); return; } this.gGC.setVisibility(8); this.gGD.setVisibility(0); } }